/*
 * v1.1 by jetsum tonydon
 * netbeansIDE 7.1
 */
package cn.txdnet.txcms.domain;

import cn.txdnet.txweb.annotation.validation.Validator;

/**
 *
 * @author txdnet
 */

public class Catalogs extends BaseEntity{
    private static final long serialVersionUID = -20881379000001L;

    private Integer cid;

    private String cname;

    private Integer cnt;

    private Integer rid;

    private String ctp;

    private Integer nodenum;

    private Byte isopen;

    private Integer ordnum;

    private Byte infotype;

    public Catalogs() {
    }
 

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Integer getCnt() {
        return cnt;
    }

    public void setCnt(Integer cnt) {
        this.cnt = cnt;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getCtp() {
        return ctp;
    }

    public void setCtp(String ctp) {
        this.ctp = ctp;
    }

    public Integer getNodenum() {
        return nodenum;
    }

    public void setNodenum(Integer nodenum) {
        this.nodenum = nodenum;
    }

    public Byte getIsopen() {
        return isopen;
    }

    public void setIsopen(Byte isopen) {
        this.isopen = isopen;
    }

    public Integer getOrdnum() {
        return ordnum;
    }

    public void setOrdnum(Integer ordnum) {
        this.ordnum = ordnum;
    }

    public Byte getInfotype() {
        return infotype;
    }

    public void setInfotype(Byte infotype) {
        this.infotype = infotype;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (cid != null ? cid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Catalogs)) {
            return false;
        }
        Catalogs other = (Catalogs) object;
        if ((this.cid == null && other.cid != null) || (this.cid != null && !this.cid.equals(other.cid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "cn.txdnet.txcms.domain.Catalogs[ cid=" + cid + " ]";
    }

    @Override
    public boolean validate() {
       return Validator.validate(this);
    }
    
}
